<?php

/**
 * @author nhatnam
 * @copyright 2011
 */

require ('../Model/clsdocgia.php');

if($_SERVER['REQUEST_METHOD']=='POST')
{
    $sua = $_POST['sua'];
    $xoa = $_POST['xoa'];
    $them = $_POST['them'];
    if($them == 'Lập thẻ')
    {
        uploadfile();
        themdocgia();
        header("Location: ../giaodiendocgia.php");  
        return;
    }
    if($xoa=='Xóa')
    {
        xoadocgia();
        header("Location: ../giaodiendocgia.php");
        return;
    }
    if($sua=='Sửa')
    {
        upload();
        updatedocgia();
        header("Location: ../giaodiendocgia.php");
        return;
    }
    
}

?>